package com.alinesno.cloud.base.logger.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.alibaba.fastjson.annotation.JSONField;


/**
 * <p>
 * 
 * </p>
 *
 * @author WeiXiaoJin
 * @since 2020-01-26 09:30:11
 */
@Entity
@Table(name="log_login")
public class LogLoginEntity extends BaseWatcherEntity {

    private static final long serialVersionUID = 1L;

	@Column(name="login_ip")
	private String loginIp;
	@Column(name="login_msg")
	private String loginMsg;
	@Column(name="login_time")
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	private Date loginTime;
	@Column(name="login_user")
	private String loginUser;
	@Column(name="logout_time")
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	private Date logoutTime;


	public String getLoginIp() {
		return loginIp;
	}

	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}

	public String getLoginMsg() {
		return loginMsg;
	}

	public void setLoginMsg(String loginMsg) {
		this.loginMsg = loginMsg;
	}

	public Date getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}

	public String getLoginUser() {
		return loginUser;
	}

	public void setLoginUser(String loginUser) {
		this.loginUser = loginUser;
	}

	public Date getLogoutTime() {
		return logoutTime;
	}

	public void setLogoutTime(Date logoutTime) {
		this.logoutTime = logoutTime;
	}


	@Override
	public String toString() {
		return "LogLoginEntity{" +
			"loginIp=" + loginIp +
			", loginMsg=" + loginMsg +
			", loginTime=" + loginTime +
			", loginUser=" + loginUser +
			", logoutTime=" + logoutTime +
			"}";
	}
}
